package parsers;

import java.io.File;
import java.net.URL;
import java.util.List;

/**
 * @author Jeremy
 * 
 */
public interface IParser
{

    /**
     * Parses a data file into a 2D table of strings
     * 
     * @param file
     *            : File to parse
     * @return 2D-List of Strings
     */
    public List<List<String>> parseFile(File file);

    /**
     * Parses header information out of the first line of a data file
     * 
     * @param file
     *            : File to parse
     * @return List of the Strings read out
     */
    public List<String> parseFirstLine(File file);

    /**
     * Parses a URL into a 2D table of strings
     * 
     * @param path
     *            : URL to parse
     * @return 2D-List of Strings
     */
    public List<List<String>> parseURL(URL path);

    /**
     * Parses header information out of the first line of a URL
     * 
     * @param path
     *            : URL to parse
     * @return List of the Strings read out
     */
    public List<String> parseFirstLine(URL path);

}
